package com.njy.aop.test;

public class SingloModel{
    public static SingloModel instance = null;
    //私有构造方法
    private SingloModel(){

    }
    //静态方法获取实例
    synchronized public  static SingloModel getInstance(){
        if(instance == null){
            instance = new SingloModel();
        }
        return instance;
    }
}
